package com.googlecode.monitoria.client.gui.teacher;

import com.extjs.gxt.ui.client.widget.TabItem;
import com.extjs.gxt.ui.client.widget.TabPanel;
import com.googlecode.monitoria.client.to.UserTO;

/**
 * @author Ricardo Ara&uacute;jo Santos - ricardo@lsd.ufcg.edu.br
 *
 */
public class TeacherTabPanel extends TabPanel {
	
	/**
	 * Default constructor.
	 * @param user Teacher information
	 */
	public TeacherTabPanel(UserTO user) {
	    setAutoHeight(true);
	    setAutoWidth(true);
	    TabItem shortText = new TabItem("Tab 01");  
	    shortText.addStyleName("pad-text");  
	    shortText.addText("Teacher " + user.getName());  
	    add(shortText);
	}
}
